﻿using DevExpress.Web.ASPxEditors;

namespace Dogshow.Web.Settings
{
    public class KinologComboBoxSettings : ComboBoxSettingsCommon
    {
        public KinologComboBoxSettings()
        {
            Properties.TextField = "ImeIPrezime";
            Properties.Columns.Add("ImeIPrezime", "Ime i prezime");
            Properties.Columns.Add("Mesto.Naziv", "Mesto");
            Properties.Buttons.Add(new EditButton("+") { ToolTip = "Dodaj novog" });
            var refreshBtn = new EditButton {ToolTip = "Osveži podatke"};
            refreshBtn.Image.Url = "~/Content/images/refresh.png";
            Properties.Buttons.Add(refreshBtn);
        }

        public void ObrisiDodatneDugmice()
        {
            Properties.Buttons.Clear();
        }
    }
}